package com.cee.service;

import com.cee.dto.OneTwoTypeDTO;
import com.cee.dto.OneTypeDTO;
import com.cee.dto.TwoTypeDTO;
import com.cee.model.OneTwoType;
import com.cee.model.TwoType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OneTwoTypeService {

    /**
     * 根据类型1，类型2 ID 查询数据
     * @param oneTwoType
     * @return
     */
    OneTwoType getOneTwoType(OneTwoType oneTwoType);


    /**
     * 根据字符串类型1，类型2  查询数据
     * @param oneTypeName
     * @param twoTypeName
     * @return
     */
    OneTwoTypeDTO getOneTwoTypeByStr(String oneTypeName, String twoTypeName);


    /**
     * 根据字符串类型1 查询数据LIST
     * @param oneTypeId
     * @return
     */
    List<TwoType> getOneTwoTypeByOneType(@Param("oneTypeId") String oneTypeId);



    List<TwoTypeDTO> getTwoPageByDTO(TwoTypeDTO twoTypeDTO);


    void saveOneTwoType(OneTwoType oneTwoType);


    /**
     * 逻辑删除
     * @param id
     */
    void deleteOneTwoType(Integer id);

}
